<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%
int statusCode = (Integer) request.getAttribute("javax.servlet.error.status_code");
String message = (String) request.getAttribute("javax.servlet.error.message");
String servletName = (String) request.getAttribute("javax.servlet.error.servlet_name");
String uri = (String) request.getAttribute("javax.servlet.error.request_uri");
Throwable t = (Throwable) request.getAttribute("javax.servlet.error.exception");
Class exception = (Class) request.getAttribute("javax.servlet.error.exception_type");


String queryString = request.getQueryString();
String url = uri + (queryString == null || queryString.length() == 0 ? "" : "?" + queryString);
url = url.replaceAll("&amp;", "&").replaceAll("&", "&amp;");
out.println(url);
%>
<title>页面<%=statusCode%>错误</title>
</head>
<body>
<%
	if(statusCode==404){
		out.println("对不起,暂时没有找到您所访问的页面地址,请联系管理员解决此问题.<br/><br/><a href=\'"+url+"\'>刷新,看看是否能访问了</a><br/>");
	}else{
		out.println("对不起,您访问的页面出了一点内部小问题,请<a href=\'"+url+"\'>刷新一下</a>重新访问,或者先去别的页面转转,过会再来吧~<br/><br/>");
	}
%>
</body>
</html>